Skip to content

Conversation

@THardy98
Copy link
Contributor

@THardy98 THardy98 commented Oct 9, 2025

What was changed

Simple sample showing how to use eager workflow start with a local activity.

Why?

Show a sample use case of eager workflow start (i.e. a workflow with a local activity).

How was this tested:

Sample runs correctly. There does not seem to be a way to verify that a worker has started eagerly in ruby SDK

Any docs updates needed?

No

@THardy98 THardy98 marked this pull request as ready for review October 9, 2025 16:47
@THardy98 THardy98 requested a review from a team as a code owner October 9, 2025 16:47
@THardy98 THardy98 merged commit 6788b0e into main Oct 9, 2025
7 checks passed
@THardy98 THardy98 deleted the eager-wf-start branch October 9, 2025 17:23
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor things

* [context_propagation](context_propagation) - Use interceptors to propagate thread/fiber local data from clients
through workflows/activities.
* [dsl](dsl) - Demonstrates having a workflow interpret/invoke arbitrary steps defined in a DSL.
* [eager_wf_start](eager_wf_start) - Demonstrates Eager Workflow Start to reduce latency for workflows that start with a local activity.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to .NET suggestion, can we use the full term workflow here?

require_relative 'eager_workflow'
require_relative 'greeting_activity'

TASK_QUEUE = 'eager-wf-start-task-queue'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually our samples have a <sample-name>-sample task queue name, so can we remove -task-queue and add -sample?

handle = client.start_workflow(
EagerWfStart::EagerWorkflow,
'Temporal',
id: "eager-workflow-id-#{SecureRandom.uuid}",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our samples have traditionally not used random identifiers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants